namespace NBody
{
    using System;
    using System.Collections;
    
    public class EnergyParticle : IDParticle
    {
        private double energy;
        private double potential;
        
        public EnergyParticle(double mass, double x, double y, double z, double vx, double vy, double vz) : base(mass, x, y, z, vx, vy, vz)
        {
            ID = 0;
            energy = 0.0f;
            potential = 0.0f;
        }
        
        public EnergyParticle(Particle p) : base(p.Mass, p.X, p.Y, p.Z, p.Vx, p.Vy, p.Vz)
        {
            ID = 0;
            energy = 0.0f;
            potential = 0.0f;
        }
        
        public EnergyParticle(IDParticle p) : base(p.Mass, p.X, p.Y, p.Z, p.Vx, p.Vy, p.Vz)
        {
            ID = p.ID;
            energy = 0.0f;
            potential = 0.0f;
        }
        
        public double Energy
        {
            get { return energy; }
            set { energy = value; }
        }
        
        public double Potential
        {
            get { return potential; }
            set { potential = value; }
        }
    }
}
